import { createStore, combineReducers, applyMiddleware } from "redux";
import {composeWithDevTools} from "redux-devtools-extension"
import thunk from "redux-thunk";
import home from "./modules/home";
import login from "./modules/login";
import register from "./modules/register";
import Cate from  "./modules/cate";
import shop from "./modules/shop"
import detail from "./modules/Detail"
const reducer = combineReducers({
  home,
  login,
  register,
  Cate,
  shop,
  detail
});

const store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)));

export default store;
